<?php

namespace App\Http\Controllers;

use App\Models\Clue;
use App\Models\MediaSource;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;
use Inertia\Inertia;

class FileController extends Controller
{
    public function uploadClueAudio(Request $request)
    {
        $path = $request->file('file')->store('clue_files', ['disk' => 'public']);
        if (!$path)
            return response()->setStatusCode(404);

        return response()->json([
            'code' => 0,
            'file_path' => $path
        ]);
    }

}
